<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<title>数据字典添加页面</title>
		<%@ include file="../../common/jsp/header.jsp"%>
		<link href="${path }/static/css/plugins/file-input/fileinput.min.css" rel="stylesheet">
	</head>

	<body>
		<div class="wrapper wrapper-content animated fadeInRight">
			<div>
				<div class="col-sm-4"><input type="button" value="返回上一页" class="btn btn-success" onclick="javascript:history.back();"/></div>
			</div>
			<div class="ibox float-e-margins">
				<form action="${path }/supplier/create.do" method="post" class="form-horizontal" role="form">
                    <fieldset>
                        <legend>供应商新增</legend>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="ds_host">供应商类型:</label>
							<div class="col-sm-2">
                                <zhg:select codeTp="type" name="supplierType" id="supplierType" cls="form-control" def="true"></zhg:select>
							</div>

							<label class="col-sm-2 control-label" for="ds_username" id="group">供应商内部组织:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierGroupId" id="supplierGroupId"/>
							</div>

						</div>
                    </fieldset>
                    <fieldset>
                        <legend></legend>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="ds_username">供应商名称:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierName"/>
							</div>
							<label class="col-sm-2 control-label" for="ds_name" >供应商分类:</label>
							<div class="col-sm-2">
								<zhg:select codeTp="cla" name="supplierClass" cls="form-control" def="true"></zhg:select>
							</div>
						</div>
                    </fieldset>
                    <fieldset>
                        <legend></legend>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="ds_username">供应商简称:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierAbbname"/>
							</div>
							<label class="col-sm-2 control-label" for="ds_name">法人:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierLegper"/>
							</div>
							<label class="col-sm-2 control-label" for="ds_name">法人电话:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierLegperTel"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="ds_username">供应商地址:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierAdd"/>
							</div>
							<label class="col-sm-2 control-label" for="ds_name">社会统一信任码:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierTrustcode"/>
							</div>
						</div>
                    </fieldset>
                    <fieldset>
                        <legend></legend>
						<div class="form-group">
							<label class="col-sm-2 control-label" for="ds_username">联系人:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierContact"/>
							</div>
							<label class="col-sm-2 control-label" for="ds_name">联系电话:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierContactTel"/>
							</div>
							<label class="col-sm-2 control-label" for="ds_name">联系人邮箱:</label>
							<div class="col-sm-2">
								<input class="form-control" type="text"  name="supplierContactMail"/>
							</div>
						</div>
                    </fieldset>
                    <fieldset>
                        <legend></legend>
                        <div class="form-group">
                            <label for="disabledSelect" class="col-sm-2 control-label">启用门户:</label>
                            <div class="col-sm-4">
                                <div class="col-sm-1"><input type="checkbox" name="supplierIsenableportal" ></div>
                            </div>
                            <label for="disabledSelect" class="col-sm-2 control-label">必须合同:</label>
                            <div class="col-sm-4">
                                <div class="col-sm-1"><input type="checkbox"  name="supplierIscontract" ></div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                        	<label class="col-sm-2 control-label" for="ds_host"></label>
                           	<div class="col-sm-4">
                              	<input type="submit" value="提交" class="btn btn-primary"/>
                           	</div>
                           	<label class="col-sm-2 control-label" for="ds_host"></label>
                           	<div class="col-sm-4">
                              	<input type="reset" value="重置" class="btn btn-danger" id="resetForm"/>
                           	</div>
                        </div>
                    </fieldset>
                </form>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="${path }/static/js/plugins/file-input/fileinput.min.js"></script>
	<script type="text/javascript" src="./js/dictionary.js"></script>
	<script type="text/javascript">
		$(document).ready(
		function pop() {
			$("#supplierGroupId").hide();
			$("#group").hide();
		});
		$('#supplierType').click(function () {
			var type = $("#supplierType").val();
			if (type==0){$("#supplierGroupId").hide();
				$("#group").hide()
			};
			if (type==1){$("#supplierGroupId").hide();
				$("#group").hide()
			};
			if (type==2){$("#supplierGroupId").show();
				$("#group").show()
			}
		})
	</script>
</html>
